/**
 * Copyright (C)  Gadglet .
 *
 * This file is part of Gadglet
 *
 * Gadglet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gadglet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Gadglet. If not, see <http://www.gnu.org/licenses/>.
 */

package com.gadglet.gadgets.bookmarks.server;

import javax.jdo.annotations.Inheritance;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.gadglet.core.GadgletRequestWrapper;
import com.gadglet.data.PersonalShareableContentItem;
import com.gadglet.gadgets.bookmarks.shared.BookMarkType;




@PersistenceCapable
@Inheritance(customStrategy = "complete-table")
public class BookMarksList extends PersonalShareableContentItem {

	 @Persistent
	 private String bookMarkUrl;
	 
	 @Persistent
	 private String bookMarkTitle;
	 
	 @Persistent
	 private BookMarkType  bookMarkType;
	 

	public BookMarksList(String bookMarkUrl, String bookMarkTitle, BookMarkType type ,GadgletRequestWrapper request)
	 {
		 super(request);
		 this.bookMarkUrl = bookMarkUrl;
		 this.bookMarkTitle = bookMarkTitle;
		 
		 if (type != null)
			 this.bookMarkType = type;
		 else
			 this.bookMarkType = BookMarkType.PRIVATE;
	 }

	public String getBookMarkUrl() {
		return bookMarkUrl;
	}

	public void setBookMarkUrl(String bookMarkUrl) {
		this.bookMarkUrl = bookMarkUrl;
	}

	public String getBookMarkTitle() {
		return bookMarkTitle;
	}

	public void setBookMarkTitle(String bookMarkTitle) {
		this.bookMarkTitle = bookMarkTitle;
	}

	public BookMarkType getBookMarkType() {
		return bookMarkType;
	}

	public void setBookMarkType(BookMarkType bookMarkType) {
		this.bookMarkType = bookMarkType;
	}
	 
	 
	 
}
